package com.hjqjl.whapp;

import com.hjqjl.common_lib.life_cycle.BizLifeCycleManager;
import com.hjqjl.module_choice.app.ChoiceBizLifeCycle;
import com.hjqjl.module_home.app.HomeBizLifeCycle;
import com.hjqjl.module_launcher.app.LauncherBizLifeCycle;
import com.hjqjl.module_main.app.MainBizLifeCycle;
import com.hjqjl.module_mine.app.MineBizLifeCycle;
import com.hjqjl.moduledemoa.app.DemoABizLifeCycle;
import com.hjqjl.moduledemob.app.DemoBBizLifeCycle;
import com.hjqjl.whapplib.base.BaseApplication;

public class MyApplication extends BaseApplication {
    @Override
    public void onCreate() {
        super.onCreate();
        //注册各模块的生命周期(在设置了优先级的情况下，可以不必在意register的顺序)
        BizLifeCycleManager.register(new MainBizLifeCycle(this));
        BizLifeCycleManager.register(new DemoABizLifeCycle(this));
        BizLifeCycleManager.register(new DemoBBizLifeCycle(this));
        BizLifeCycleManager.register(new HomeBizLifeCycle(this));
        BizLifeCycleManager.register(new ChoiceBizLifeCycle(this));
        BizLifeCycleManager.register(new MineBizLifeCycle(this));
        BizLifeCycleManager.register(new LauncherBizLifeCycle(this));
        BizLifeCycleManager.execute();
    }
}
